﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ASPNETVN.PORTAL.Components.UI;

namespace ASPNETVN.PORTAL.Modules.ADVERTISEMENT.Controls
{
    public partial class Item : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {                
                gvItem.RepeatColumns = int.Parse(this.Settings["Columns.Count"].ToString());
                this.GridDataBinding();
            }
        }
        private void GridDataBinding()
        {
            DataSet ds = Components.Item.SelectAll(this.ModuleID);
            gvItem.DataSource = ds;
            gvItem.DataBind();
        }

    }
}